#include "MapObject.h"

MapObject::MapObject(const char* _image, int _x, int _y)
{
	x = _x;
	y = _y;
	image = new char[strlen(_image)+1];
	strcpy(image, _image);
}

void MapObject::move(int dX, int dY)
{
	x += dX;
	y += dY;
}
void MapObject::moveTo(int _x, int _y)
{
	x = _x;
	y = _y;
}
void MapObject::setImage(const char* _image)
{
	delete[] image;
	image = new char[strlen(_image)+1];
	strcpy(image, _image);
}
void MapObject::draw(ShaderInfo shi)
{
}